import { sysCourseTeamAdd } from "@/api/admin/courseLibrary/sysCourseTeam.js";
export default {
    data() {
        return {
            form: {
                userId: "",
                auditStatus: "2",
                orderBy: "10",
                courseId: this.$store.getters.courseId,
                courseOriginator: this.$store.getters.courseCreateBy,
            },
        };
    },
    methods: {
        handleAdd(v) {
            if (!v.userId.length) return;
            this.form.userId = v.userId.map(v => v.id).toString();
            sysCourseTeamAdd(this.form).then((res) => {
                this.getList();
                this.getAllList();
                this.$message({
                    message: "操作成功",
                    type: "success",
                });
            });
        },
    },
}